home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Meters / MetersView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-16  |  2.2 KB  |  85 lines

  1. // MetersView.h : interface of the CMetersView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "rtmeterx.h"
  6. //}}AFX_INCLUDES
  7.  
  8. #if !defined(AFX_METERSVIEW_H__4C65A68E_463B_11D1_AFD4_0040C79403A8__INCLUDED_)
  9. #define AFX_METERSVIEW_H__4C65A68E_463B_11D1_AFD4_0040C79403A8__INCLUDED_
  10.  
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14.  
  15. class CMetersView : public CFormView
  16. {
  17. protected: // create from serialization only
  18.     CMetersView();
  19.     DECLARE_DYNCREATE(CMetersView)
  20.  
  21. public:
  22.     //{{AFX_DATA(CMetersView)
  23.     enum { IDD = IDD_METERS_FORM };
  24.     CRTMETERX    m_RTMeter1;
  25.     CRTMETERX    m_RTMeter2;
  26.     CRTMETERX    m_RTMeter3;
  27.     //}}AFX_DATA
  28.  
  29. // Attributes
  30. public:
  31.     CMetersDoc* GetDocument();
  32.  
  33. // Operations
  34. public:
  35.  
  36. // Overrides
  37.     // ClassWizard generated virtual function overrides
  38.     //{{AFX_VIRTUAL(CMetersView)
  39.     public:
  40.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  41.     virtual void OnInitialUpdate();
  42.     protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  45.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  46.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  47.     virtual void OnPrint(CDC* pDC, CPrintInfo*);
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. public:
  52.     virtual ~CMetersView();
  53. #ifdef _DEBUG
  54.     virtual void AssertValid() const;
  55.     virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57.     void BuildGraph1();
  58.     void BuildGraph2();
  59.     void BuildGraph3();
  60.  
  61. protected:
  62.  
  63. // Generated message map functions
  64. protected:
  65.     //{{AFX_MSG(CMetersView)
  66.     afx_msg void OnInternalTimerRtmeterxctrl1();
  67.     afx_msg void OnInternalTimerRtmeterxctrl2();
  68.     afx_msg void OnInternalTimerRtmeterxctrl3();
  69.     DECLARE_EVENTSINK_MAP()
  70.     //}}AFX_MSG
  71.     DECLARE_MESSAGE_MAP()
  72. };
  73.  
  74. #ifndef _DEBUG  // debug version in MetersView.cpp
  75. inline CMetersDoc* CMetersView::GetDocument()
  76.    { return (CMetersDoc*)m_pDocument; }
  77. #endif
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.  
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  83.  
  84. #endif // !defined(AFX_METERSVIEW_H__4C65A68E_463B_11D1_AFD4_0040C79403A8__INCLUDED_)
  85.